package kandl.automation.reporting;

import kandl.automation.Browser;
import kandl.automation.junit.exception.FailedTestCaseException;
import kandl.automation.testsuite.TestCase;
import kandl.automation.testsuite.TestSuite;

import org.apache.log4j.Logger;

public class LoggingResultReporter implements ResultReporter {

    private Logger log4j = Logger.getLogger(LoggingResultReporter.class);

    @Override
    public void pass(TestCase testCase, Browser browser, TestSuite testSuite) {
        log4j.info("Passing testsuite: " + testSuite + " for the browser: " +  browser + "\n Test Description: " + testCase);
    }

    @Override
    public void fail(TestCase testCase, Browser browser, TestSuite testSuite, String comment) {
        log4j.warn(comment);
    }
}
